/* 封装axios */
import axios from 'axios'
import authApi from '~/utils/auth'
import { Message, MessageBox } from 'element-ui'

const token = authApi.getUser().token
// 创建axios实例
const service = axios.create({
    baseURL: 'http://192.168.89.186:7300/mock/5cb3da0f82033b08b83a3bcf/jmyp', // api的base_url  easymock基础url地址
    timeout: 15000, // 请求超时时间
    //TODO headers: {'Authorization': 'Bearer '+token}
})


export default service